<template>
	<view>
		<view class="content">
			<view class="centers">
				<h3 class="fs15" style="text-align: center;padding-top:30rpx">单人豪华套餐</h3>
				<view class="drtc fs12">
					<text>规格</text>
					<view>
						<text :class="gg == 0?'green':''" @click="guige(0)">约500克</text>
						<text :class="gg == 1?'green':''" @click="guige(1)">5斤</text>
					</view>
				</view>
				<!--  -->
				<view class="drtc fs12">
					<text>味道</text>
					<view>
						<text :class="wd == 0?'green':''" @click="weidao(0)">微辣</text>
						<text :class="wd == 1?'green':''" @click="weidao(1)">中辣</text>
						<text :class="wd == 2?'green':''" @click="weidao(2)">麻辣</text>
						<text :class="wd == 3?'green':''" @click="weidao(3)">特辣</text>
					</view>
				</view>
				<!--  -->
				<view class="drtc fs12">
					<text>主食</text>
					<view>
						<text :class="zs == 0?'green':''" @click="zhushi(0)" >米饭</text>
						<text :class="zs == 1?'green':''" @click="zhushi(1)">面条</text>
					</view>
				</view>
				<!--  -->
				<view class="w80">
					<view class="w80left">
						<text class="fs12">总计：</text>
						<text class="fs12" style="color: #FE401E;">￥</text>
						<text class="fs16" style="color: #FE401E;">16.6</text>
					</view>
					<view class="w80right fs12"  @click="show=false">
						加购
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ["show"],
		data() {
			return {
				gg:0,
				wd:0,
				zs:0
			}
		},
		methods: {
			guige(idx){
				this.gg = idx
			},
			weidao(idx){
				this.wd = idx
			},
			zhushi(idx){
				this.zs = idx
			},
			// getBack() {
			// 	uni.navigateBack()
			// },
		}
	}
</script>

<!-- <style>
	.green{
		color: rgba(36,188,129,1);
		background: rgba(36,188,129,0.2);
	}
	.content {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		background: rgba(0, 0, 0, 0.3);
		z-index: 99;
	}

	.centers {
		width: 670rpx;
		height: 828rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		position: absolute;
		left: 50%;
		top: 20%;
		transform: translateX(-50%);
		z-index: 99;
	}

	.drtc {
		margin: 30rpx 40rpx;
	}

	.drtc>text {
		color: rgba(164, 164, 164, 1);
	}

	.drtc>view {
		margin-top: 20rpx;
	}

	.drtc>view>text {
		display: inline-block;
		width: 130rpx;
		margin: 10rpx;
		padding: 10rpx 15rpx;
		border: 1rpx solid rgba(223, 223, 223, 1);
		text-align: center;
	}

	.w80 {
		width: 85%;
		height: 60rpx;
		margin: 80rpx auto;
		display: flex;
		position: relative;
	}

	.w80right {
		border-radius: 10rpx;
		width: 120rpx;
		padding: 8rpx;
		background: rgba(36, 188, 129, 1);
		text-align: center;
		color: #FFFFFF;
		position: absolute;
		right: 0;
		top: 0;
	}
</style> -->
